package com.wxq.shape;

import android.graphics.Path;

public class MapLine extends MapPath {

	float xBegin;
	float yBegin;
	float xEnd;
	float yEnd;
	
	
	public MapLine(float xBegin, float yBegin, float xEnd, float yEnd) {
		super(new Path());
		this.xBegin = xBegin;
		this.yBegin = yBegin;
		this.xEnd = xEnd;
		this.yEnd = yEnd;
		mPath.moveTo(xBegin, yBegin);
		mPath.lineTo(xEnd, yEnd);
		setDrawPath(new Path(mPath));
	}
	
	public MapLine(float xBegin, float yBegin, float xEnd, float yEnd,float xOffset,float yOffset) {
		this(xBegin, yBegin, xEnd, yEnd);
		offset(xOffset, yOffset);
	}
	
	
	
	public float getxBegin() {
		return xBegin;
	}

	public void setxBegin(float xBegin) {
		this.xBegin = xBegin;
	}

	public float getyBegin() {
		return yBegin;
	}

	public void setyBegin(float yBegin) {
		this.yBegin = yBegin;
	}

	public float getxEnd() {
		return xEnd;
	}

	public void setxEnd(float xEnd) {
		this.xEnd = xEnd;
	}

	public float getyEnd() {
		return yEnd;
	}

	public void setyEnd(float yEnd) {
		this.yEnd = yEnd;
	}

}
